package cn.elead.chaos.sso.core.constant;

public interface SsoConstant {

	// 主题
	// String THEME = "login/theme";
	String DEFAULT_THEME = "login/theme/default";
	String THEME = "login/theme/";

	// 重定向标识
	String REDIRECT_URI_PREFIX = "redirect:";

	// 默认登录
	String LOGIN_PAGE = "login";

	// 默认登出
	String SSO_LOGOUT = "logout";

	// 回调code
	String SSO_CODE = "code";

	// 回调token
	String SSO_TOKEN = "Token";

	// 存在服务器浏览器的cookie的key
	String COOKIE_SESSIONID = "sso-sessionid";
	
	// 存在服务器浏览器的cookie的key
	String COOKIE_THEME = "sso-theme";

	// 存在reids中的session
	String REDIS_SESSIONID = "redis:sessionid:";

	// 存在reids中的code
	String REDIS_CODE = "redis:code:";

	// 重定向到客户端的地址
	String REDIRECT_URI = "redirect_uri";

	// 浏览器参数response_type
	String PARAM_RESPONSE_TYPE = "response_type";

	// CLIENT
	String CLIENT = "oauthClient";
	
	// 浏览器参数client_id
	String PARAM_CLIENT_ID = "client_id";

	// 浏览器参数client_id
	String ERROR_MSG = "errorMsg";
	
	// 单点服务
	String SSO_SERVER = "sso_server";
	
	// 排除路径
	String SSO_EXCLUDED_PATHS = "excluded_paths";
	
	// 客户端秘钥
	String SSO_CLIENT_SECRET = "client_secret";
	
	// 登录用户
	String SSO_LOGIN_USER = "login_user";
	
	// 登录用户ID
	String SSO_LOGIN_USER_ID = "login_user_id";
	
	// token key
	String AUTHORIZATION = "Authorization";
	
	// 回调
	String CODE_CALL_BACK = "code_call_back";
	
	// 登录用户路径
	String SSO_USER_PATH = "sso_user_path";
	
	// 校验租户
	String VAILD_TENANT = "vaild_tenant";
	
	// 租户key
	String TENANT_KEY = "tenant_key";
}
